package Trip;

public class Transport {

	public double cost;
	public ModeOfTransport transport;

	public enum ModeOfTransport {
		PLANE, TRAIN
	}

	public Transport() {
		super();
	
	}

	public Transport(ModeOfTransport transport) {
		super();
		this.transport = transport;
	}

	public double getCost() {
		switch (this.transport) {
		case PLANE:
			cost = 700;
			break;
		case TRAIN:
			cost = 300;
			break;

		}
		return cost;
	}

	public ModeOfTransport getTransport() {
		return transport;
	}

}
